
#pragma once

#include <unordered_map>
#include <string>
#include "myutil.h"

/**
 * function: get a word's stem by looking up in a dictionary. The dictionary must follow a prescribed format.
 *
 * author: lujun
 * date: 2012-8-29
 *
 * */

class Stemmer
{
private:
	unordered_map<string, string> m_toStem;

public:
	Stemmer(const char * dict_path);
	~Stemmer();

	string getStem(const string & word) const;

};
